import requests from './index.js'

export const homeProductList = () => requests({ url: '/homeproduct', method: 'get' })

export const homeNoteBookList = () => requests({ url: '/noteBook', method: 'get' })

export const homeSmartList = () => requests({ url: '/smartList', method: 'get' })

export const categoryList = (type) => requests({ url: `/categorylist/${type}`, method: 'get' })

export const noteBookList = () => requests({ url: '/redminotebook', method: 'get' })

export const productList = (id) => requests({ url: `/product/${id}`, method: 'get' })

export const addShopCart = () => requests({ url: '/addshopcart', method: 'get' })

export const getCode = () => requests({ url: '/code', method: 'get' })

export const getToken = () => requests({ url: '/token', method: 'get' })

export const goBuy = () => requests({ url: '/buy', method: 'get' })

export const getOrderList = () => requests({ url: '/orderlist', method: 'get' })

export const getAddressId = () => requests({ url: '/addressid', method: 'get' })

export const getSearchList = () => requests({ url: '/getSearchList', method: 'get' })
